#include "StudentInfo.h"
#include <cstring>
StudentInfo::StudentInfo(const char *name, char *number, char *profession)
{
	strcpy(this->name,name);
	strcpy(this->number,number);
	strcpy(this->profession,profession);
}
StudentInfo::StudentInfo()
{

}
void StudentInfo::setInfo(const char *name, char *number, char *profession)
{
	int i=strlen(name);
	this->name=new char[i];
	strcpy(this->name,name);
	strcpy(this->number,number);
	strcpy(this->profession,profession);
}
char *StudentInfo::getName()
{
	return this->name;
}
void StudentInfo::setName(const char *name)
{
	strcpy(this->name,name);
}
char *StudentInfo::getNumber()
{
	return this->number;
}
void StudentInfo::setNumber(const char *)
{
	strcpy(this->number,number);
}
char *StudentInfo::getProfession()
{
	return this->profession;
}
void StudentInfo::setProfession(const char *)
{
	strcpy(this->profession,profession);
}
StudentInfo::~StudentInfo()
{
	if(name)
		delete name;
}